/**
 * index
 */
define(function(require) {
    var $ = require('jquery');
    var com = require('./common');

    com.layoutSet();

     //数字处理
    com.digital_num('digital_num');

    axios.get(com.api.houseing_status).then(function(response){                
    //房屋类型
        com.chart3("chart1",response.data.hoursetype.name,response.data.hoursetype.num,'pie','','right',['35%', '55%'],response.data.hoursetype.color);
    });
    axios.get(com.api.houseing_status).then(function(response){                
    //小区管理
        com.chart3("chart2",response.data.xqmanage.name,response.data.xqmanage.num,'pie','','right',['35%', '55%'],response.data.xqmanage.color);
    });
    axios.get(com.api.houseing_status).then(function(response){                
    //小区管理
        com.chart3("chart3",response.data.hourse.name,response.data.hourse.num,'pie','','right',['35%', '55%'],response.data.hourse.color);
    });
    axios.get(com.api.houseing_status).then(function(response){                
    //家庭规模
        com.chart3("chart4",response.data.family.name,response.data.family.num,'pie','','right',['35%', '55%'],response.data.family.color);
    });
    axios.get(com.api.houseing_status).then(function(response){                
    //住宅高度
        com.chart3("chart5",response.data.hoursheight.name,response.data.hoursheight.num,'pie','','right',['35%', '55%'],response.data.hoursheight.color);
    });


    com.loading_finished();
});